package t10086.Configure;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.net.InetAddress;

@Component
public class SocketConfig {

    @Value("${socket.address}")
    private  InetAddress address;

    @Value("${socket.port}")
    private  int port;

    @Value("${socket.max_backlog}")
    private  int maxBacklog;

    public  int getMaxBacklog() { return maxBacklog; }
    public  InetAddress  getAddress() {
        return address;
    }
    public  int getPort() {
        return port;
    }

    @Override
    public String toString() {
        return "CustomConfig{" +
                "address=" + address +
                ", port='" + port + '\'' +
                '}';
    }
}
